package com.hxh.component.business.utils;

/**
 * author mardawang
 * <p>
 * email:wy363681759@163.com
 * <p>
 * date: 2018/4/20
 * <p>
 * desc:
 */

public class MyTaskUIUtil {

    public static String RefreshData(String info, String data){

        String new_data = "<font color='#999999'>"+info+"</font><font color='#252525'>"+data+"</font>";
        return new_data;
    }

    public static String getGender(String s){
        String gender = "";
        if("1".equals(s)){//男：1，女：2
            gender = "男";
        }else if("2".equals(s)){
            gender = "女";
        }else{
            gender = "未知";
        }
        return gender;
    }

    public static String getTaskStyle2Eng(String s){
        String style = "";
        if("天".equals(s)){
            style = "day";
        }else if("小时".equals(s)){
            style = "hour";
        }else if("件".equals(s)){
            style = "piece";
        }else if("单".equals(s)){
            style = "order";
        }
        return style;
    }

    public static String getTaskStyle2Chinese(String s){
        String style = "";
        if("day".equals(s)){
            style = "天";
        }else if("hour".equals(s)){
            style = "小时";
        }else if("piece".equals(s)){
            style = "件";
        }else if("order".equals(s)){
            style = "单";
        }
        return style;
    }
}
